SECRET_KEY = 'abcdefghijklmm'
# token有效期
TOKEN_EXPIRES = 100

FILEPATH = 'file'

CHART01 = {
    "backgroundColor": "rgba(19, 44, 108, 1)",
    "backgroundImages": "",
    "titleName": "***智能仓数据看板",
    "titleFontSize": 30,
    "titleFontWeight": "bold",
    "titleFontColor": "rgba(255, 255, 255, 1)",
    "titleLeftLogo": "",
    "titleLeftLogoWidth": 30,
    "titleRightLogo": "",
    "titleRightLogoWidth": 60,
    "titleHeight": 60,
    "topHeight": 250,
    "topLineHeight": 20,
    "topList": [
        {
            "flex": 1,
            "show": True,
            "direction": 'row',
            "border": 'BorderBox13',
            "borderColor1": "#6586ec",
            "borderColor2": "#2CF7FE",
            "padding": 5,
            "config": [{
                "components": "panel",
                "flex": 1,
                "show": True,
                "backgroundColor": "rgba(19, 44, 108, 0)",
                "borderColor1": "#6586ec",
                "borderColor2": "#2CF7FE",
                "border": 'borderA002',
                "padding": 10,
                "wh":'',
                "wh_name":'',
                "nameFontSize": 25,
                "nameFontColor": "rgba(255,255,255, 1)",
                "nameHeight": 70,
                "titleFontSize": 20,
                "titleFontColor": "rgba(255,255,255, 1)",
                "titleHeight": 60,
                "contentFontSize": 30,
                "contentFontColor": "rgba(219,156,28, 1)",
                "lineBackgroundColor": "rgba(255,255,255, 1)",
                "lineHeight": 2,
                "pool": '',
                "pool_name": '',
                "sql": '',
                "time": 4,
                "text": {
                    "name": "入库信息",
                    "titleLeft": "当日待入库",
                    "contentLeft": "4pcs/7单",
                    "titleRight": "当日待入库",
                    "contentRight": "4pcs/7单"
                }
            }]
        },
        {
            "flex": 1,
            "show": True,
            "direction": 'row',
            "border": 'BorderBox13',
            "borderColor1": "#6586ec",
            "borderColor2": "#2CF7FE",
            "padding": 5,
            "config": [{
                "components": "panel",
                "flex": 1,
                "show": True,
                "backgroundColor": "rgba(19, 44, 108, 0)",
                "borderColor1": "#6586ec",
                "borderColor2": "#2CF7FE",
                "border": 'borderA002',
                "padding": 10,
                "wh":'',
                "wh_name":'',
                "nameFontSize": 25,
                "nameFontColor": "rgba(255,255,255, 1)",
                "nameHeight": 70,
                "titleFontSize": 20,
                "titleFontColor": "rgba(255,255,255, 1)",
                "titleHeight": 60,
                "contentFontSize": 30,
                "contentFontColor": "rgba(219,156,28, 1)",
                "lineBackgroundColor": "rgba(255,255,255, 1)",
                "lineHeight": 2,
                "pool": '',
                "pool_name": '',
                "sql": '',
                "time": 4,
                "text": {
                    "name": "入库信息",
                    "titleLeft": "当日待入库",
                    "contentLeft": "4pcs/7单",
                    "titleRight": "当日待入库",
                    "contentRight": "4pcs/7单"
                }
            }]
        },
        {
            "flex": 1,
            "show": True,
            "direction": 'row',
            "border": 'BorderBox13',
            "borderColor1": "#6586ec",
            "borderColor2": "#2CF7FE",
            "padding": 5,
            "config": [{
                "components": "panel",
                "flex": 1,
                "show": True,
                "backgroundColor": "rgba(19, 44, 108, 0)",
                "borderColor1": "#6586ec",
                "borderColor2": "#2CF7FE",
                "border": 'borderA002',
                "padding": 10,
                "wh":'',
                "wh_name":'',
                "nameFontSize": 25,
                "nameFontColor": "rgba(255,255,255, 1)",
                "nameHeight": 70,
                "titleFontSize": 20,
                "titleFontColor": "rgba(255,255,255, 1)",
                "titleHeight": 60,
                "contentFontSize": 30,
                "contentFontColor": "rgba(219,156,28, 1)",
                "lineBackgroundColor": "rgba(255,255,255, 1)",
                "lineHeight": 2,
                "pool": '',
                "pool_name": '',
                "sql": '',
                "time": 4,
                "text": {
                    "name": "入库信息",
                    "titleLeft": "当日待入库",
                    "contentLeft": "4pcs/7单",
                    "titleRight": "当日待入库",
                    "contentRight": "4pcs/7单"
                }
            }]
        },
        {
            "flex": 1,
            "show": True,
            "direction": 'row',
            "border": 'BorderBox13',
            "borderColor1": "#6586ec",
            "borderColor2": "#2CF7FE",
            "padding": 5,
            "config": [{
                "components": "panel",
                "flex": 1,
                "show": True,
                "backgroundColor": "rgba(19, 44, 108, 0)",
                "borderColor1": "#6586ec",
                "borderColor2": "#2CF7FE",
                "border": 'borderA002',
                "padding": 10,
                "wh":'',
                "wh_name":'',
                "nameFontSize": 25,
                "nameFontColor": "rgba(255,255,255, 1)",
                "nameHeight": 70,
                "titleFontSize": 20,
                "titleFontColor": "rgba(255,255,255, 1)",
                "titleHeight": 60,
                "contentFontSize": 30,
                "contentFontColor": "rgba(219,156,28, 1)",
                "lineBackgroundColor": "rgba(255,255,255, 1)",
                "lineHeight": 2,
                "pool": '',
                "pool_name": '',
                "sql": '',
                "time": 4,
                "text": {
                    "name": "入库信息",
                    "titleLeft": "当日待入库",
                    "contentLeft": "4pcs/7单",
                    "titleRight": "当日待入库",
                    "contentRight": "4pcs/7单"
                }
            }]
        }
    ],
    "bottomList":
        [
            {
                "flex": 1,
                "show": True,
                "direction": 'row',
                "border": 'BorderBox12',
                "borderColor1": "#6586ec",
                "borderColor2": "#2CF7FE",
                "padding": 5,
                "config": [{"components": "pie",
                            "flex": 1,
                            "show": True,
                            "backgroundColor": "rgba(19, 44, 108, 0)",
                            "borderColor1": "#6586ec",
                            "borderColor2": "#2CF7FE",
                            "padding": 10,
                            "wh":'',
                            "wh_name":'',
                            "border": 'borderA002',
                            "pool": '',
                            "pool_name": '',
                            "sql": '',
                            "time": 4,
                            "config": {
                                "title": {
                                    "text": "当日入库排名1",
                                    "left": "left",
                                    "textStyle": {
                                        "fontSize": 20,
                                        "color": "#FFFFFF"
                                    }
                                },
                                "tooltip": {
                                    "trigger": "item"
                                },
                                "series": [
                                    {"name": "", "type": "pie", "radius": "40%",
                                     "center": ["50%", "50%"],
                                     "data": [{"value": 1048, "name": "苹果"}, {"value": 735, "name": "细化"},
                                              {"value": 580, "name": "哈密瓜"}, {"value": 484, "name": "烧烤"},
                                              {"value": 300, "name": "小龙虾"}],
                                     "label": {"show": True, "position": "outside", "formatter": "{b}: {d}%\n{c}",
                                               "color": "#FFFFFF", "fontSize": 12}, "emphasis": {
                                        "itemStyle": {"shadowBlur": 10, "shadowOffsetX": 0,
                                                      "shadowColor": "rgba(0, 0, 0, 0.5)"}}}]}}]
            },
            {
                "flex": 1,
                "show": True,
                "direction": 'row',
                "border": 'BorderBox12',
                "borderColor1": "#6586ec",
                "borderColor2": "#2CF7FE",
                "padding": 5,
                "config": [{
                    "components": "scrollTable",
                    "flex": 1,
                    "show": True,
                    "backgroundColor": "rgba(19, 44, 108, 0)",
                    "borderColor1": "#6586ec", "borderColor2": "#2CF7FE", "border": 'borderA001', "padding": 10,
                    "pool": '',
                    "pool_name": '',
                    "wh":'',
                    "wh_name":'',
                    "sql": '',
                    "time": 4, "oddBackgroundColor": "rgba(0,59,81, 1)",
                    "evenBackgroundColor": "rgba(10,39,50, 1)", "headerBackgroundColor": "rgba(0,125,190, 1)",
                    "hoverBackgroundColor": "rgba(0,125,190, 1)", "color": "rgba(255,255,255, 1)", "fontSize": 18,
                    "tableFiled": [{"prop": "index", "label": "#", "width": "50"},
                                   {"prop": "sys_date", "label": "创建日期", "width": "auto"},
                                   {"prop": "name", "label": "产品名称", "width": "auto"},
                                   {"prop": "spc", "label": "产品规格", "width": "auto"}],
                    "title": {"text": "当日入库", "fontWeight": "bold", "fontSize": 20,
                              "color": "rgba(255,255,255, 1)", "height": 60, "paddingLeft": 20, "paddingRight": 0,
                              "textAlign": "left", "backgroundColor": "rgba(255,255,255, 0)"}}]
            },
            {
                "flex": 1,
                "show": True,
                "direction": 'row',
                "border": 'BorderBox12',
                "borderColor1": "#6586ec",
                "borderColor2": "#2CF7FE",
                "padding": 5,
                "config": [{
                    "components": "scrollTable", "flex": 1, "show": True, "backgroundColor": "rgba(19, 44, 108, 0)",
                    "borderColor1": "#6586ec",
                    "borderColor2": "#2CF7FE", "border": 'borderA001', "padding": 10, "pool": '',
                    "pool_name": '',
                    "wh":'',
                    "wh_name":'',
                    "sql": '',
                    "time": 4, "oddBackgroundColor": "rgba(0,59,81, 1)",
                    "evenBackgroundColor": "rgba(10,39,50, 1)", "headerBackgroundColor": "rgba(0,125,190, 1)",
                    "hoverBackgroundColor": "rgba(0,125,190, 1)", "color": "rgba(255,255,255, 1)", "fontSize": 18,
                    "tableFiled": [{"prop": "index", "label": "#", "width": "50"},
                                   {"prop": "sys_date", "label": "创建日期", "width": "auto"},
                                   {"prop": "name", "label": "产品名称", "width": "auto"},
                                   {"prop": "spc", "label": "产品规格", "width": "auto"}],
                    "title": {"text": "当日出库", "fontWeight": "bold", "fontSize": 20,
                              "color": "rgba(255,255,255, 1)", "height": 60, "paddingLeft": 20, "paddingRight": 0,
                              "textAlign": "left", "backgroundColor": "rgba(255,255,255, 0)"}}]
            },
            {
                "flex": 1,
                "show": True,
                "direction": 'row',
                "border": 'BorderBox12',
                "borderColor1": "#6586ec",
                "borderColor2": "#2CF7FE",
                "padding": 5,
                "config": [{
                    "components": "scrollTable", "flex": 1, "show": True, "backgroundColor": "rgba(19, 44, 108, 0)",
                    "borderColor1": "#6586ec",
                    "borderColor2": "#2CF7FE", "border": 'borderA001', "padding": 10, "pool": '',
                    "pool_name": '',
                    "sql": '',
                    "wh":'',
                    "wh_name":'',
                    "time": 4, "oddBackgroundColor": "rgba(0,59,81, 1)",
                    "evenBackgroundColor": "rgba(10,39,50, 1)", "headerBackgroundColor": "rgba(0,125,190, 1)",
                    "hoverBackgroundColor": "rgba(0,125,190, 1)", "color": "rgba(255,255,255, 1)", "fontSize": 18,
                    "tableFiled": [{"prop": "index", "label": "#", "width": "50"},
                                   {"prop": "sys_date", "label": "创建日期", "width": "auto"},
                                   {"prop": "name", "label": "产品名称", "width": "auto"},
                                   {"prop": "spc", "label": "产品规格", "width": "auto"}],
                    "title": {"text": "上下架", "fontWeight": "bold", "fontSize": 20, "color": "rgba(255,255,255, 1)",
                              "height": 60, "paddingLeft": 20, "paddingRight": 0, "textAlign": "left",
                              "backgroundColor": "rgba(255,255,255, 0)"}}]
            }
        ]
}
